﻿using System.Web.Mvc;

namespace EraNet.WebApp.IMS
{
    public class IMSAreaRegistration : AreaRegistrationOrder
    {
        public override string AreaName
        {
            get
            {
                return "IMS";
            }
        }

        public override void RegisterAreaOrder(AreaRegistrationContext context)
        {
            context.MapRoute("IMS_default", "IMS/{controller}/{action}/{id}", new { area = "IMS", controller = "account", action = "index", id = UrlParameter.Optional });
            context.MapRoute("IMS_Test",
                "IMS/{controller}/{action}/{id}",
                new { controller = "Test", action = "CertExamInfo",id=UrlParameter.Optional },
                new[] { "EraNet.Web.IMS" });

            context.MapRoute("IMS_CardManagerRoute",
              "IMS/{controller}/{action}/{id}",
              new { controller = "System", action = "CardManager", id = UrlParameter.Optional },
              new[] { "EraNet.Web.IMS" });
        }

        public override int Order
        {
            get { return 1; }
        }
    }
}
